package com.caocaog.market.front;

import com.caocaog.market.annotation.IgnoreAuth;
import com.caocaog.market.entity.MartResearch;
import com.caocaog.market.service.MartResearchService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.base.controller.GenericController;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 市场调研
 *
 * @author chechen
 * @date 2022-01-13
 */
@Slf4j
@RestController
@Api(value = "martResearch", tags = "市场调研移动端API")
@RequestMapping("/api/martResearch")
public class MartResearchFrontController extends GenericController<MartResearch, MartResearchService> {

    @IgnoreAuth
    @ApiOperation(value = "根据市场调研id获取信息", notes = "根据市场调研id获取信息")
    @GetMapping("getById")
    public Result<MartResearch> getMartResearch(@RequestParam("id") String id) {
        return Result.OK(super.service.getMartResearchById(id));
    }

}
